<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<div id="header">
	<!--  设置头部div框架  -->
	<div id="top">
		您好！
		<s:if test="#session.user == null && #session.seller == null">
					欢迎来到校园豆豆&nbsp;&nbsp;
						<a href="login.do">请登录</a>&nbsp;&nbsp;
					<a href="register.do">用户注册</a>
		</s:if>
		<s:else>
			<s:if test="#session.user != null && #session.seller == null">
				<a href="index!userAndSellerCheck.do" class="index_username"><s:property
						value="#session.user.username" /> </a>
			</s:if>
			<s:elseif test="#session.user == null && #session.seller != null">
				<a href="index!userAndSellerCheck.do" class="index_username"><s:property
						value="#session.seller.username" /> </a>
			</s:elseif>
						&nbsp;
						<a href="login!out.do">退出</a>
		</s:else>
		<div id="time">
			<a href="index!userAndSellerCheck.do">我的豆荚</a> &nbsp;&nbsp;
			<s:if test="#session.seller == null">
				<a href="userCenter!gouWuChe.do">购物车</a>
			</s:if>
			<s:elseif test="#session.seller != null">
				<a href="#">购物车</a>
			</s:elseif>
		</div>
	</div>
	<div id="together1">
		<!--组合部分：logo、搜索引擎、填充图-->

		<div id="logo">
			<!--logo区-->
		</div>

		<div id="search">
			<!--搜索引擎区-->

			<div id="search_bar">

				<form action="" method="post">
					<!--    

    <img src="../images/ks_logo.gif" />

    <select>

    <option value="0" selected="selected">淘商品</option>

    <option value="1">逛商店</option>

    </select>

	<input value="" name="keyid" type="hidden"/>

    -->
					<ul>
						<li>
							<input name="key" class="input1" size="50" value="商品 商店...."
								type="text" />
						</li>
						<li>
							<!--<input type="image" src="images/ks_btn.gif" />-->
							<a href="#">搜索</a>
						</li>
					</ul>
				</form>
			</div>
		</div>
		<div id="fillprint">
			<!--填充图区-->
		</div>
	</div>

	<div id="nav">
		<!--网站导航区-->
		<ul>
			<li>
				<a href="index.do">网站首页</a>
			</li>

			<li>
				<a href="#">逛商店</a>
			</li>

			<li>
				<a href="product.do">淘商品</a>
			</li>

			<li>
				<a href="#">团购</a>
			</li>

			<li>
				<a href="#">其他</a>
			</li>
		</ul>
	</div>
</div>
<!--      header end      -->
